package com.blrs.service.questionnaire;

import java.util.List;

import com.blrs.common.core.domain.AjaxResult;
import com.blrs.domain.QuestionnaireEnroll;
import com.fasterxml.jackson.core.JsonProcessingException;

/**
 * 问卷调查作答Service接口
 * 
 * @author yang
 * @date 2023-12-01
 */
public interface IQuestionnaireEnrollService 
{
    /**
     * 查询问卷调查作答
     * 
     * @param answerId 问卷调查作答主键
     * @return 问卷调查作答
     */
    public QuestionnaireEnroll selectQuestionnaireEnrollByAnswerId(String answerId);

    /**
     * 查询问卷调查作答列表
     * 
     * @param questionnaireEnroll 问卷调查作答
     * @return 问卷调查作答集合
     */
    public List<QuestionnaireEnroll> selectQuestionnaireEnrollList(QuestionnaireEnroll questionnaireEnroll);

    /**
     * 新增问卷调查作答
     * 
     * @param questionnaireEnroll 问卷调查作答
     * @return 结果
     */
    public int insertQuestionnaireEnroll(QuestionnaireEnroll questionnaireEnroll);

    /**
     * 修改问卷调查作答
     * 
     * @param questionnaireEnroll 问卷调查作答
     * @return 结果
     */
    public int updateQuestionnaireEnroll(QuestionnaireEnroll questionnaireEnroll);

    /**
     * 批量删除问卷调查作答
     * 
     * @param answerIds 需要删除的问卷调查作答主键集合
     * @return 结果
     */
    public int deleteQuestionnaireEnrollByAnswerIds(String[] answerIds);

    /**
     * 删除问卷调查作答信息
     * 
     * @param answerId 问卷调查作答主键
     * @return 结果
     */
    public int deleteQuestionnaireEnrollByAnswerId(String answerId);

    AjaxResult insertQuestionnaireEnrollByAnswer(List<List<Integer>> result, String questionnaireId) throws JsonProcessingException;

    List<QuestionnaireEnroll> selectIsAnswerListByQuestionnaireId(QuestionnaireEnroll questionnaireEnroll);
}
